﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data.DataGet;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.ComponentModel;

namespace Business.DataBusiness
{
    public class ThongTinGiaBan
    {
        _ThongTinGiaBan data = new _ThongTinGiaBan();
        private string maDT;
        private float giaBan;


        public string MaDT
        {
            get { return maDT; }
            set { maDT = value; }
        }
        
        public float GiaBan
        {
            get { return giaBan; }
            set { giaBan = value; }
        }
        
        public ThongTinGiaBan() { }
        public ThongTinGiaBan(string madt, float giaban)
        {
            this.MaDT = madt;
            this.GiaBan = giaban;
        }
        public void Update()
        {
            data.Update_ThongTinGiaBan(this.MaDT,this.GiaBan);
        }
        public string GiaBanDT(string MaDT)
        {
            return data.GiaBan(MaDT).Rows[0][0].ToString();
        }

    }
}
